package com.bluesky.plum.uimodels.standard.components;

import com.bluesky.plum.richdomain.RichDomainField;
import com.bluesky.plum.uimodels.standard.FieldUIComponent;

public class CheckBox extends FieldUIComponent {

	private boolean checked;

	public CheckBox(RichDomainField field) {
		super(field);
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public Boolean isChecked() {
		return checked;
	}
	
	@Override
	public Object getDomainFieldValue() {
		
		return isChecked();
	}
	
	@Override
	public void setDomainFieldValue(Object value) {
		
		setChecked((Boolean)value);
	}
}
